//
//  Device.h
//  itaka
//
//  Created by Robert Soszynski on 1/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GPS.h"

@protocol DeviceDelegate <NSObject> 
@required
- (void) deviceUpdated;
@end

@interface Device : NSObject <GPSDelegate> {
    id <DeviceDelegate> delegate;
    GPS *gps;
    
    NSString *identifier;
    NSString *name;
    NSString *model;
    NSString *systemName;
    NSString *systemVersion;
    NSNumber *batteryLevel;
}

@property (retain, nonatomic) id <DeviceDelegate> delegate;
@property (retain, nonatomic) GPS *gps;
@property (retain, nonatomic) NSString *identifier, *name, *model, *systemName, *systemVersion;
@property (retain, nonatomic) NSNumber *batteryLevel;

- (void) updateOnDemand;
- (void) update;
- (void) updateBattery;

@end
